FUNCTION

_get_proof_from_operations

function _get_proof_from_operations(all_operations: list<gtx_operation>, gtx_transaction: gtx_transaction, require_anchored_proof: boolean): (tx_hash: byte_array, confirmation_proof: confirmation_proof, block_header: block_header)?

Returns the confirmation_proof corresponding to the given transaction if there is any present in current transaction. It also returns transaction hash and a decoded version of the block header in the proof.

Parameters

  • all_operations — All operations in the current transaction
  • gtx_transaction — The transaction to check
  • require_anchored_proof — Whether or not we require inclusion of a proof that the block containing the transaction has been anchored in cluster anchoring chain
© 2024 Chromia